import axios from 'axios';
const URL = '';

export default {
	install:function(Vue){
		const get = (url,data)=>{
			let urlALL = URL+url;
			return axios.get(urlALL,{headers:{'token': '01f3c8bf4fb88a07fac997307ec11d41'},params:data})
		};
		const get1 = (url,data)=>{
			let urlALL = URL+url;
			return axios.get(urlALL,{params:data})
		};
		const deleteData = (url,data)=>{
			let urlALL = URL+url;
			return axios.delete(urlALL,{params:data})
		};
		const post = (url,data,config)=>{
			let urlALL = URL+url;
			return axios.post(urlALL,data,config)
		};
		Vue.prototype.get = get;
		Vue.prototype.get1 = get1;
		Vue.prototype.post = post;
		Vue.prototype.delete = deleteData;
	}
}

